import { constantRoutes } from '@/router' // 引入静态路由
const state = {
  routes: [...constantRoutes] // 实时更新的动态路由数组
}
const mutations = {
   asignRole(state,asignRoutes){
     state.routes = [...constantRoutes,...asignRoutes]
   }
}
const actions = {

}
const getters = {

}
export default {
  namespaced: true, // 开启命名空间
  state,
  mutations,
  actions,
  getters
}
